package model

import "gorm.io/gorm"

type Shop struct {
	gorm.Model
	Title   string  `gorm:"type:varchar(150); not null; comment:'标题'"`
	Address string  `gorm:"type:varchar(150); not null; comment:'地址'"`
	Image   string  `gorm:"type:varchar(150); not null; comment:'图片'"`
	Type    int64   `gorm:"type:int; not null; comment:'0-2室1厅1卫,1-3室1厅1卫,2-4室1厅2卫'"`
	Price   float32 `gorm:"type:decimal(10,2); not null; comment:'价格'"`
	Stock   int64   `gorm:"type:int; not null; comment:'预约次数'"`
	Context string  `gorm:"type:text;comment:'备注'"`
	Phone   string  `gorm:"type:char(11); not null; comment:'手机号码'"`
}
